package com.lp.biz.order.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serial;
import lombok.Data;

/**
 * biz_trade_income_log实体类
 * 收入明细
 * @program: backend
 * @author Ke.Song
 * @since 2024-09-01 17:38:56
 */
@Data
@TableName("biz_trade_income_log")
public class BizTradeIncomeLog implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer memberId;

    /**
     * 订单id
     */
    private Integer bizOrderId;

    /**
     * 订单类型, 0: 会员, 1: 共读会, 2: 训练营，3：课程
     */
    @TableField("`type`")
    private Integer type;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 交易时间
     */
    private LocalDateTime tradeAt;

    /**
     * 创建时间
     */
    private LocalDateTime createAt;


}
